package com.example.sdemo.app.service.impl;

import com.example.sdemo.app.service.TeacherService;
import com.example.sdemo.domain.entity.Student;
import com.example.sdemo.domain.entity.Teacher;
import com.example.sdemo.infra.mapper.TeacherMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class TeacherServiceImpl implements TeacherService {
    @Resource
    public TeacherMapper teacherMapper;
    @Override
    public Teacher selectTById(Integer id) {
        return teacherMapper.selectTById(id);
    }

    @Override
    public Boolean insertT(Teacher teacher) {
        return teacherMapper.insertT(teacher);
    }

    @Override
    public Boolean deleteT(Integer id) {
        return teacherMapper.deleteT(id);
    }

    @Override
    public Boolean updateT(Teacher teacher) {
        return teacherMapper.updateT(teacher);
    }
}
